<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>系统登录 - 客户关系管理系统</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" type="text/css" href="${path}/css/login.css">
    <style>
        .Info{
            color: red;
        }
    </style>
</head>
<body>
<div class="main">
    <table class="midTable">
        <tr>
            <td>
                <div>
                    <h1>客户关系管理系统</h1>
                    <img src="${path}/images/login2.jpg" >
                    <form method="post" action="${path}/user/login">
                        <span>用戶名:</span>
                        <input id="username" type="text" name="username" required/>
                        &nbsp;&nbsp;
                        <span>密码:</span>
                        <input id="password" type="password" name="password" required/>
                        <input id="btnSubmit" type="submit" value="登录">
                        <c:if test="${err == 0}"><span class="Info"> * 账户无效</span></c:if>
                        <c:if test="${err == 1}"><span class="Info"> * 无效密码</span></c:if>
                        <c:if test="${err == 102}"><span class="Info"> * 请输入账户访问</span></c:if>
                    </form>
                </div>
            </td>
        </tr>
    </table>
</div>
</body>
</html>